package com.drawu.drawuspring.domain.po;


import com.drawu.drawuspring.domain.DTO.UpdateUserDataDTO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
public class UpdateUserDataPO {
    private String openid;
    private String nickname;
    private String signature;
    private int sex;
    private String avatarUrl;
    private String province;
    private String city;
    private String district;
    @ApiModelProperty(value = "phone")
    private String phone;


    public UpdateUserDataPO(String openid, UpdateUserDataDTO updateUserDataDTO) {
        this.openid = openid;
        this.nickname = updateUserDataDTO.getNickname();
        this.signature = updateUserDataDTO.getSignature();
        this.sex = updateUserDataDTO.getSex();
        this.avatarUrl = updateUserDataDTO.getAvatarUrl();
        this.province = updateUserDataDTO.getProvince();
        this.city = updateUserDataDTO.getCity();
        this.district = updateUserDataDTO.getDistrict();
    }
}
